package com.javasea.web.retry.retryDemo;

import org.springframework.retry.annotation.Backoff;
import org.springframework.retry.annotation.Retryable;

/**
 *@ClassName TestRetryService
 *@Description TODO
 *@Author longxiaonan@163.com
 *@Date 2022/4/23 0023 21:15
 */
public interface TestRetryService {
    @Retryable(value = Exception.class,maxAttempts = 3,backoff = @Backoff(delay = 2000,multiplier = 1.5))
    int test(int code) throws Exception;
}
